package com.hzhh123.crypto.config;

import com.hzhh123.crypto.advice.DecryptRequestBodyAdvice;
import com.hzhh123.crypto.advice.EncryptResponseAdvice;
import com.hzhh123.crypto.exception.CryptoGlobalExceptionAdvice;
import com.hzhh123.crypto.processor.CryptoBeanFactoryPostProcessor;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;


/**
 * @author hzhh123
 * 自动配置类
 */
@RequiredArgsConstructor(onConstructor_ = @Autowired)
@EnableConfigurationProperties(CryptoProperties.class)
@Configuration
@ComponentScan(basePackages = {"com.hzhh123.crypto.handle"})
@Import(value = {CryptoBeanFactoryPostProcessor.class,DecryptRequestBodyAdvice.class, EncryptResponseAdvice.class, CryptoGlobalExceptionAdvice.class})
public class CryptoConfig{



}
